#include <BustaModelOpponent.h>
Public Member Functions | |
BustaModelOpponent () | |
Constructor. | |
BustaModelOpponent (int h, int s, char *name) | |
Constructor. | |
~BustaModelOpponent () | |
Destructor. | |
int | getHealth () |
gets health of character | |
char * | getName () |
Returns the name of the opponent. | |
int | getTips () |
gets amount in tipjar | |
BustaModelTipJar * | getTipJar () |
Returns the tip jar. | |
bool | isValid () |
Returns whether or not the opponent's data is valid. | |
void | setHealth (int newHealth) |
Sets the health of the opponent. | |
void | setPlayerName (char *newName) |
void | setValid (bool valid) |
Sets whether or not this opponent should be viewed. |
Opponent representation, has character, health, and tip jar
|
Constructor. Initializes variables |
|
Constructor. Initializes variables |
|
Destructor. Deletes tip jar |
|
gets health of character Gets the health of the opponent |
|
Returns the name of the opponent. Returns the name of the opponent
|
|
Returns the tip jar. Returns the tip jar associated with this opponent
|
|
gets amount in tipjar returns int with current amount in opponent tip jar |
|
Returns whether or not the opponent's data is valid. Returns if the opponent's data contained is actually valid. If it is not valid, the data does not represent a real opponent or is no longer correct and should not be processed.
|
|
Sets the health of the opponent. Sets the health of the opponent
|
|
|
|
Sets whether or not this opponent should be viewed. Sets whether or not this opponent should be viewed. If an opponent is not to be viewed, the data contained within is irrelevant. In the case of displaying graphics, this opponent's stats need not even be displayed.
|